# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pyee
pkgver=8.2.2
pkgrel=1
pkgdesc="A port of node.js's EventEmitter to Python"
url="https://github.com/jfhbrook/pyee"
arch="noarch"
license="MIT"
depends="
	py3-async_generator
	py3-trio
	py3-twisted
	py3-vcversioner
	python3
	"
makedepends="
	py3-pytest-asyncio
	py3-pytest-runner
	py3-pytest-trio
	py3-setuptools
	"
checkdepends="
	py3-mock
	pytest
	"
source="https://pypi.python.org/packages/source/p/pyee/pyee-$pkgver.tar.gz"
builddir="$srcdir/pyee-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1b2b64631c16a203b690579f20bf9ece25d438604c772dd10e9f06f0d3ef5a1452de8343c995cd50743f6f3b5311b299509209a9ecab28b72b20c1d1bec7ad37  pyee-8.2.2.tar.gz
"
